/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package test;

import entity.Product;
import java.util.List;
import model.AddressModel;
import model.ProductModel;

/**
 *
 * @author Rohmad Raharjo
 */
public class Main {

    /**
     * @param args the command line arguments
     */
    public static void main(String[] args) {

        List result = null;
        AddressModel model = new AddressModel();
        
        result = model.select();
        System.out.println("Result : " + result.size());
        for (Object c : result) {
            Product user = (Product) c;
            System.out.println(user.getName());

        }

    }
}
